package com.szc.demo01.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Author: ShiZhiCheng
 * @Date: 2021/01/12 16:36:58
 */
@TableName("file")
@Data
@NoArgsConstructor
public class MFile {
    @TableId(value = "f_id",type = IdType.AUTO)
    private long fId;
    private String fName;
    private long sendId;
    private String sendName;
    private long receiveId;
    private String receiveName;
    @JsonFormat(timezone = "GMT+8",pattern = "yyyy-MM-dd")
    private Date createTime;
    /**
     * 是否接收 0未接受 1接收
     */
    private int isAccept;
    private String path;

}
